{extend name="layout_modal" /}
{block name="content"}
<section class="content" style="padding-top:0px;">
<div class="row">
  <div class="box">
    <form role="form" action="{:url('data_update')}">
      <div class="box-body">
        <div class="form-group">
          <label for="exampleInputEmail1">上级分类</label>
          <input type="text" class="form-control" value="{$info.pname}" readonly>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">标题</label>
          <input type="text" class="form-control" placeholder="标题" name="title" value="{$info.title}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">全称</label>
          <input type="text" class="form-control" placeholder="全称" name="fullname" value="{$info.fullname}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">首字母</label>
          <input type="text" class="form-control" placeholder="首字母" name="initial" value="{$info.initial}">
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">图片</label>
            <div class="input-group input-group-sm">
                <input type="text" class="form-control" name="thumb" id="thumb_text" value="{$info.thumb}">
                <span class="input-group-btn">
                    <input id="thumb" class="upload_picker" type="file" btnTxt="上传图片">
                </span>
            </div>
            <div id="queue_thumb"></div>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">销售状态</label>
          <select class="form-control" name="salestate">
            <option value="" {eq name="info.salestate" value=""} selected {/eq}>请选择</option>
            <option value="待销" {eq name="info.salestate" value="待销"} selected {/eq}>待销</option>
            <option value="在销" {eq name="info.salestate" value="在销"} selected {/eq}>在销</option>
            <option value="停销" {eq name="info.salestate" value="停销"} selected {/eq}>停销</option>
          </select>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">提示</label>
          <input type="text" class="form-control" name="tip" placeholder="提示" value="{$info.tip}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">排序</label>
          <input type="text" class="form-control" placeholder="排序" name="listorder" value="{$info.listorder}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">是否推荐</label>
          <div>
            <label><input type="radio" name="isrecom" value="1" {eq name="info.isrecom" value="1"} checked {/eq}> 推荐</label>
            <label><input type="radio" name="isrecom" value="0" {eq name="info.isrecom" value="0"} checked {/eq}>不推荐</label>
          </div>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">是否热销</label>
          <div>
            <label><input type="radio" name="ishot" value="1" {eq name="info.ishot" value="1"} checked {/eq}> 热销</label>
            <label><input type="radio" name="ishot" value="0" {eq name="info.ishot" value="0"} checked {/eq}>不热销</label>
          </div>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">是否隐藏</label>
          <div>
            <label><input type="radio" name="hide" value="0" {eq name="info.hide" value="0"} checked {/eq}> 显示</label>
            <label><input type="radio" name="hide" value="1" {eq name="info.hide" value="1"} checked {/eq}>隐藏</label>
          </div>
        </div>
      </div>
      <input type="hidden" name="id" value="{$info.id}">
    </form>
  </div>
</div>
</section>
{/block}